package com.windgo.bean.bo.wxgoods;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wuwen
 * @since 2022/10/16
 * 10:32
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class GoodsWxRelatedVo {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<WxCategoryGoodsVo> list;
    public static GoodsWxRelatedVo data(long total,Integer pages,Integer limit,Integer page,List list){
        GoodsWxRelatedVo goodsWxRelatedVo = new GoodsWxRelatedVo();
        goodsWxRelatedVo.setTotal((int)total);
        goodsWxRelatedVo.setPages(pages);
        goodsWxRelatedVo.setPage(page);
        goodsWxRelatedVo.setLimit(limit);
        goodsWxRelatedVo.setList(list);
        return goodsWxRelatedVo;
    }
}

